package com.erms.bean;

import java.util.Date;

/**
 * User entity. @author MyEclipse Persistence Tools
 */

public class User implements java.io.Serializable {

	// Fields

	/**
	 * 
	 */
	private static final long	serialVersionUID	= -8627621235302367217L;
	private String		id;
	private Degree		degree;
	private Major		major;
	private Department	department;
	private String		password;
	private String		type;
	private String		name;
	private String		sex;
	private Date		birthday;
	private String		email;
	private String		phone;
	private String		dormitory;
	private String		classNum;
	private String		office;

	// Constructors

	/** default constructor */
	public User() {

	}

	/** minimal constructor */
	public User(String id, String password, String type) {

		this.id = id;
		this.password = password;
		this.type = type;
	}

	/** full constructor */
	public User(String id, Degree degree, Major major, Department department,
			String password, String type, String name, String sex,
			Date birthday, String email, String phone, String dormitory,
			String classNum, String office) {

		this.id = id;
		this.degree = degree;
		this.major = major;
		this.department = department;
		this.password = password;
		this.type = type;
		this.name = name;
		this.sex = sex;
		this.birthday = birthday;
		this.email = email;
		this.phone = phone;
		this.dormitory = dormitory;
		this.classNum = classNum;
		this.office = office;
	}

	// Property accessors

	public String getId() {

		return this.id;
	}

	public void setId(String id) {

		this.id = id;
	}

	public Degree getDegree() {

		return this.degree;
	}

	public void setDegree(Degree degree) {

		this.degree = degree;
	}

	public Major getMajor() {

		return this.major;
	}

	public void setMajor(Major major) {

		this.major = major;
	}

	public Department getDepartment() {

		return this.department;
	}

	public void setDepartment(Department department) {

		this.department = department;
	}

	public String getPassword() {

		return this.password;
	}

	public void setPassword(String password) {

		this.password = password;
	}

	public String getType() {

		return this.type;
	}

	public void setType(String type) {

		this.type = type;
	}

	public String getName() {

		return this.name;
	}

	public void setName(String name) {

		this.name = name;
	}

	public String getSex() {

		return this.sex;
	}

	public void setSex(String sex) {

		this.sex = sex;
	}

	public Date getBirthday() {

		return this.birthday;
	}

	public void setBirthday(Date birthday) {

		this.birthday = birthday;
	}

	public String getEmail() {

		return this.email;
	}

	public void setEmail(String email) {

		this.email = email;
	}

	public String getPhone() {

		return this.phone;
	}

	public void setPhone(String phone) {

		this.phone = phone;
	}

	public String getDormitory() {

		return this.dormitory;
	}

	public void setDormitory(String dormitory) {

		this.dormitory = dormitory;
	}

	public String getClassNum() {

		return this.classNum;
	}

	public void setClassNum(String classNum) {

		this.classNum = classNum;
	}

	public String getOffice() {

		return this.office;
	}

	public void setOffice(String office) {

		this.office = office;
	}

}
